public class ArrayBasic {

	public static void main(String[] args) {
		int[] a = {10, 20, 30, 40, 50};
		int i, sum = 0;
		
		for (i=0; i<5; i++)
		{
			sum += a[i];
		}
		
		System.out.println("Sum = " + sum);
	}
}
